//
//  RankTableViewCell.m
//  Item A House
//
//  Created by dlios on 15/5/23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "RankTableViewCell.h"

@implementation RankTableViewCell
- (void)dealloc
{
    [_price release];
    [_tags release];
    [_region release];
    [_loupan release];
    [_image release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createImage];
    }
    return self;
}
- (void)createImage
{
    self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width / 2 - 40, 80)];
    [self.contentView addSubview:self.image];
    [self.image release];
    
    self.loupan = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 10, [UIScreen mainScreen].bounds.size.width / 2 + 20, 20)];
    [self.loupan setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];
    [self.contentView addSubview:self.loupan];
    [self.loupan release];
    
    self.region = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 35, [UIScreen mainScreen].bounds.size.width / 2 + 20, 10)];
    self.region.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.region.font = [UIFont systemFontOfSize:13];;
    [self.contentView addSubview:self.region];
    [self.region release];
    
    self.tags = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 57, [UIScreen mainScreen].bounds.size.width / 2 + 20, 10)];
    self.tags.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.tags.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.tags];
    [self.tags release];
    
    self.price = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 80, [UIScreen mainScreen].bounds.size.width / 2 + 20, 10)];
    self.price.textColor = [UIColor redColor];
    [self.contentView addSubview:self.price];
    [self.price release];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
